class FclShareStatus {
  /// 是否存在位置共享
  int? isExist;

  /// 是否已经加入共享位置
  int? isJoined;

  /// 当前共享位置人数
  int? num;

  /// 最大上报间隔
  int? maxInterval;

  /// 最大共享成员数
  int? maxMember;

  FclShareStatus({
    this.isExist,
    this.isJoined,
    this.num,
    this.maxInterval,
    this.maxMember,
  });

  // 从 JSON 创建实例
  factory FclShareStatus.fromJson(Map<String, dynamic> json) {
    return FclShareStatus(
      isExist: json['slbs_status'] as int,
      isJoined: json['status'] as int,
      num: json['num'] as int,
      maxInterval: json['max_interval'] as int,
      maxMember: json['max_member'] as int,
    );
  }

  // 将实例转换为 JSON
  Map<String, dynamic> toJson() {
    return {
      'slbs_status': isExist,
      'status': isJoined,
      'num': num,
      'max_interval': maxInterval,
      'max_member': maxMember,
    };
  }
}
